const user = {
    state:{
        name:'学生',
        id:'',
        sex:''
    },


    actions:{
        changeUserName(ctx,val){
            console.log("---changeUserName-------action")
            ctx.commit("changeUserName",val);
        }
    },

    mutations :{
        changeUserName(state,val){
            console.log("---changeUserName-------mutations")

            console.log(state);
            console.log(val);
            state.name=val;

        }

    }


}
export default user


